package com.ruoyi.project.modules.processBranchCondition.domain;

import com.ruoyi.project.modules.processBranchConditionDetail.domain.ProcessBranchConditionDetail;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 分支条件对象 t_process_branch_condition
 * 
 * @author smallrain
 * @date 2022-04-02
 */
public class ProcessBranchCondition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分支条件ID */
    private Long branchConditionId;

    /** 分支条件名称 */
    @Excel(name = "分支条件名称")
    private String branchConditionName;

    /** 类型（if，else if，else） */
    @Excel(name = "类型", readConverterExp = "i=f，else,i=f，else")
    private String type;

    /** 关联条件（AND，OR） */
    @Excel(name = "关联条件", readConverterExp = "A=ND，OR")
    private String joinCondition;

    /** 分支条件描述 */
    @Excel(name = "分支条件描述")
    private String branchConditionDesc;

    /** 流程分支ID */
    @Excel(name = "流程分支ID")
    private Long processBranchId;

    /** 接口ID */
    @Excel(name = "接口ID")
    private Long interfaceId;

    private List<ProcessBranchConditionDetail> processBranchConditionDetailList;

    public List<ProcessBranchConditionDetail> getProcessBranchConditionDetailList() {
        return processBranchConditionDetailList;
    }

    public void setProcessBranchConditionDetailList(List<ProcessBranchConditionDetail> processBranchConditionDetailList) {
        this.processBranchConditionDetailList = processBranchConditionDetailList;
    }

    public void setBranchConditionId(Long branchConditionId)
    {
        this.branchConditionId = branchConditionId;
    }

    public Long getBranchConditionId() 
    {
        return branchConditionId;
    }
    public void setBranchConditionName(String branchConditionName) 
    {
        this.branchConditionName = branchConditionName;
    }

    public String getBranchConditionName() 
    {
        return branchConditionName;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setJoinCondition(String joinCondition) 
    {
        this.joinCondition = joinCondition;
    }

    public String getJoinCondition() 
    {
        return joinCondition;
    }
    public void setBranchConditionDesc(String branchConditionDesc) 
    {
        this.branchConditionDesc = branchConditionDesc;
    }

    public String getBranchConditionDesc() 
    {
        return branchConditionDesc;
    }
    public void setProcessBranchId(Long processBranchId) 
    {
        this.processBranchId = processBranchId;
    }

    public Long getProcessBranchId() 
    {
        return processBranchId;
    }
    public void setInterfaceId(Long interfaceId) 
    {
        this.interfaceId = interfaceId;
    }

    public Long getInterfaceId() 
    {
        return interfaceId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("branchConditionId", getBranchConditionId())
            .append("branchConditionName", getBranchConditionName())
            .append("type", getType())
            .append("joinCondition", getJoinCondition())
            .append("branchConditionDesc", getBranchConditionDesc())
            .append("processBranchId", getProcessBranchId())
            .append("interfaceId", getInterfaceId())
            .toString();
    }
}
